import constant from '../constant.js'

export default {

  methods: {

    getUTF8Str (str) {
        if (!str) return ''
        return encodeURI(str);
    },

    getFullImagePath (imageName) {
      if (!imageName) return ''
      var path = constant.imageBasePath + imageName + '?v=' + Math.random();
      return this.getUTF8Str(path);
    }

  }
}
